
QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

INCLUDEPATH += ./ /mnt/qt6/lvgl /mnt/qt6/lvgl/lvgl-8.2.0 /mnt/qt6/lvgl/lv_drivers/qt5

LIBS += -L"/mnt/qt6/lvgl/"
LIBS += -llvgl8 -lm

INCLUDEPATH += /usr/include/tirpc
LIBS += -lnsl -ltirpc

DEFINES += LV_CONF_INCLUDE_SIMPLE LV_LVGL_H_INCLUDE_SIMPLE LV_DEMO_CONF_INCLUDE_SIMPLE

INCLUDEPATH += ../vd_common

SOURCES += \
    main/main.cpp \
    main/mouse_cursor_icon.c \
    ../lv_drivers/qt5/qt5.cpp \
    main/vd_lvgl_server.c \
    ../vd_common/vd_lvgl_svc.c \
    ../vd_common/vd_lvgl_xdr.c \
    vdthread.cpp

HEADERS += \
    lv_conf.h \
    lv_demo_conf.h \
    lv_drv_conf.h \
    ../lv_drivers/qt5/qt5.h \
    ../vd_common/vd_lvgl.h \
    vdthread.h

FORMS += \
    ../lv_drivers/qt5/mainwindow.ui

